﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using Gota.Common.Attributes;
using System.Runtime.Serialization;

namespace Gota.Common.PlugIns.Annie.Resources
{
    [Serializable]
    public class GazetterCategory : IResourceProvider
    {

        public GazetterCategory()
        {
            Deploy = true;
            Encoding = "UTF-8";
        }

        #region IResourceProvider Members

        [OrderInfo(Index=0)]
        public string Name
        {
            get { return "Gazetter Category"; }
        }

        #endregion

        [OrderInfo(Index = 1)]
        [DefaultValue(true)]
        public bool Deploy { get; set; }

        [OrderInfo(Index = 2)]
        [DefaultValue(false)]
        public bool CaseSensitive { get; set; }

        [OrderInfo(Index = 3)]
        [DefaultValue("UTF-8")]
        public string Encoding { get; set; }

        [OrderInfo(Index = 4)]
        [DefaultValue(1)]
        public int Priority { get; set; }

        [OrderInfo(Index = 5)]
        public int ResourceInstanceId { get; set; }
    }
}
